package es.deusto.ingenieria.is.Reinas;

import es.deusto.ingenieria.is.formulation.State;
import es.deusto.ingenieria.is.search.blind.BreadthFSwithLog;

public class Main {
	public static void main(String[] args) {
		
		int dimension = 4;
		
		try {
			ReinasProblem problem = new ReinasProblem();
			IniTablero entorno = new IniTablero(dimension); 					
			State initialState = new State((Tablero)entorno.getInformation());
			problem.addInitialState(initialState);
			problem.createOperators();
			problem.solve(BreadthFSwithLog.getInstance());			
		} catch (Exception ex) {
			System.err.println("% [Main Program] Error: " + ex.getMessage());
			ex.printStackTrace();
		}
	}
}
